package bean05;

class BasketballPlayer extends Athlete implements LearnEnglish, LearnComputer {
    @Override
    public void learnEnglish() {
        System.out.println("篮球运动员学习英语。");
    }

    @Override
    public void learnComputer() {
        System.out.println("篮球运动员学习计算机。");
    }

    @Override
    public void doSport() {
        System.out.println("篮球运动员进行篮球运动。");
    }

    public static void testBasketballPlayer() {
        BasketballPlayer basketballPlayer = new BasketballPlayer();
        basketballPlayer.doSport();
        basketballPlayer.learnEnglish();
        basketballPlayer.learnComputer();
    }
}